package Job04.BaconPizza;

import Job04.Pizza.Pizza;

public class BaconPizza extends Pizza {
    private int g;

    public int getG() {
        return g;
    }
    public void setG(int g) {
        this.g = g;
    }

    public BaconPizza(String name, double price, int size) {
        super(name, price, size);
        this.g = g;
    }

    public BaconPizza() {
    }
    public void name(){
        System.out.println("名称："+this.getName());
    }
    public void price(){
        System.out.println("价格："+this.getPrice()+"元");
    }public void size(){
        System.out.println("尺寸："+this.getSize()+"寸");
    }
    public void g(){
        System.out.println("培根克数："+g);
    }
}
